package com.daxidi.cn.vo;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * @author JiaLin
 * create 2020-11-16
 */
@ApiModel("订单详细信息订单信息Vo")
@Data
public class OrderSystemVo {

    @ApiModelProperty("商家名称")
    private String shopName;

    @ApiModelProperty("订单总价")
    private Double total;

    @ApiModelProperty("店铺折扣")
    private Double discount;

    @ApiModelProperty("实收金额")
    private Double discounted;

    @ApiModelProperty("订单编号")
    private Long orderId;

    @ApiModelProperty("会员姓名")
    private String memberName;

    @ApiModelProperty("交易状态")
    private Integer payState;

    //格式 + 东八区
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @JSONField(format="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty("交易时间")
    private Date payAt;

    @ApiModelProperty("通知状态")
    private String notifyStatus;

    //格式 + 东八区
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @JSONField(format="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty("通知时间")
    private Date notifyTime;

    /*@ApiModelProperty("订单通知地址")
    private String notifyAddress;*/

}
